package com.kkb.shopcenter.common.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Table;
import java.util.List;


@Data // getter、setter
@AllArgsConstructor // 全参构造方法
@NoArgsConstructor // 无参构造方法
@Accessors(chain = true) // 链式编程写法
@Table(name="category_info")
public class CategoryInfo extends BaseEntity{


    private String categoryName;

    private Long parentId;

    private Integer level;

    private Integer sort;

    private Byte status;


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CategoryInfo> children;

}
